//
//  CasesTableViewCell.m
//  MarryMe
//
//  Created by lanou3g on 16/1/7.
//  Copyright © 2016年 revocher. All rights reserved.
//

#import "CasesTableViewCell.h"

@implementation CasesTableViewCell






- (void)awakeFromNib {
    // Initialization code
    
    UITapGestureRecognizer *tap1 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tap1:)];
    UITapGestureRecognizer *tap2 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tap2:)];
    UITapGestureRecognizer *tap3 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tap3:)];
    [self.leftWiteImage addGestureRecognizer:tap1];
    [self.rightWhiteImage addGestureRecognizer:tap2];
    [self.allCaseImageView addGestureRecognizer:tap3];
    
    
    
    
}

-(void)tap1:(UITapGestureRecognizer *)sender{
    [[NSNotificationCenter defaultCenter]postNotificationName:@"leftImage" object:nil];
    
}

-(void)tap2:(UITapGestureRecognizer *)sender{
    [[NSNotificationCenter defaultCenter]postNotificationName:@"rightImage" object:nil];
}

-(void)tap3:(UITapGestureRecognizer *)sender{
    [[NSNotificationCenter defaultCenter]postNotificationName:@"allCaseImage" object:nil];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
